﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UIEditForm.aspx.cs" 
Inherits="UILGestion.VentaAdmin.UI.UIEditForm" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register src="../../Control/menuCtrl.ascx" tagname="menuCtrl" tagprefix="cc1" %>


<%@ Register assembly="WebLib" namespace="WebLib" tagprefix="lib" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
 <link rel="stylesheet" type="text/css" href="../../estilos/_common/styles/fonts.css" />
 <link rel="stylesheet" type="text/css" href="../../estilos/_common/styles/global.css" />
 <link rel="stylesheet" type="text/css" href="../../estilos/_common/styles/theme.css" />
    <title>Registro de Proyecto Unidad Inmobiliaria</title>
   
     <script src="../../Scripts/jquery-1.5.2.min.js" type="text/javascript"></script>
   <script type="text/javascript">
       $(document).ready(function () {
           $(document).bind('contextmenu', function (e) {
               return false;
           });
       });
</script>
   
   
    </head>
<body>
    <form id="form1" runat="server">
    <input id="type" type="hidden" runat="server" />
    <input id="internalID" type="hidden" runat="server" />
    <input id="idProyecto" type="hidden" runat="server" />
    <input id="paginaAnt" type="hidden" runat="server" />
     <cc1:menuCtrl ID="menuCtrl1" runat="server" />
    
      <asp:ToolkitScriptManager ID="ToolkitScriptManager2" runat="server" 
      EnableScriptGlobalization="true"  
     EnablePartialRendering="true" />
    
     <asp:Panel ID="pnlMain" runat="server"
  CssClass="Heading secTitle AreaHeading ms-crm-List-Header">
  <asp:Label ID="Label2" runat="server" Text="EDITAR UNIDAD INMOBILIARIA" 
             style="font-size: large; color: #960818"></asp:Label>
 </asp:Panel>

          <asp:Panel ID="PanelButtom" runat="server"     class="ms-crm-Form-Body" >                 
   <table >
<tr>

<td>
    <asp:Button ID="saveBTN" runat="server" Text="Guardar"  
       OnClick="button"   CssClass="ms-crm-List-Header"    /></td>
<td>
    <asp:Button ID="cancelarBTN" runat="server" Text="Cancelar"  
       OnClick="button" CssClass="ms-crm-List-Header"  /></td>
        <td>
            
    </td>
        <td>
    <asp:Button ID="refreshBTN" runat="server" Text="Restablecer"   OnClick="button" CssClass="ms-crm-List-Header" 
          /></td> 
 
</tr>
</table>
</asp:Panel>

<asp:Panel ID="PanelBody" runat="server"  BackColor="white" >
                
                <table>
                   
                    <tr>
                        <td rowspan="10" valign="top"  Width="480px">
               
                                     <table>
                        <tr>
                        <td align="right" width="100px">Etapa</td>
                        <td>
                            <asp:DropDownList ID="idEtapaDDL" runat="server" AutoPostBack="true" 
                                onselectedindexchanged="DDL" Width="210px">
                            </asp:DropDownList>
                            </td>
                        
                        </tr>
                                       
                                      
                                         <tr>
                                             <td align="right" width="100px">
                                                 Unidad Inmobiliaria:</td>
                                             <td>
                                                 <asp:DropDownList ID="idtipoUIDDL" runat="server" AutoPostBack="true" 
                                                     onselectedindexchanged="DDL" Width="210px">
                                                 </asp:DropDownList>
                                             </td>
                                         </tr>
                                       
                                      
                                         <tr>
                                             <td align="right" width="100px">
                                                 Codigo Inmueble:</td>
                                             <td>
                                                 <asp:TextBox ID="codigoTXT" runat="server" Width="200px"></asp:TextBox>
                                             </td>
                                         </tr>
                                       
                                         <tr>
                                             <td align="right" width="100px">
                                                 Caracteristica:</td>
                                             <td>
                                                 <asp:DropDownList ID="tipoAtributoDDL" runat="server" Width="210px">
                                                 </asp:DropDownList>
                                             </td>
                                         </tr>

                                         <tr>
                                             <td align="right" width="100px">
                                                 Tipo Modelo:</td>
                                             <td>
                                                 <asp:DropDownList ID="tipoModeloDDL" runat="server" Width="210px">
                                                 </asp:DropDownList>
                                             </td>
                                         </tr>
                           
                        </table>
               
                        </td>
                    </tr>
                  
               
                    <tr class="PanelTotales">
                        <td  width="130px" align="right">
                            Estado de Venta:</td>
                        <td>
                            <asp:Label ID="estadoLBL" runat="server"></asp:Label>
                        </td>
                    </tr>
                    <tr class="PanelTotales">
                        <td align="right"  width="130px">
                            Plazo Max Entrega:</td>
                        <td>
                            <lib:Input ID="plazoMaxEntregaTXT" runat="server" DataType="Int" Width="75px"></lib:Input>
                            Meses
                        </td>
                    </tr>
                    <tr class="PanelTotales">
                        <td  width="130px" align="right">
                            Fecha Entrega:</td>
                        <td>
                            <asp:TextBox ID="fechaFinTXT" runat="server" Width="95px"></asp:TextBox>
                            <asp:ImageButton ID="ImageButton2" runat="Server" 
                                  AlternateText="Click aqui para mostrar calendario" 
                                  ImageUrl="~/Images/month.gif" Width="16px" />
                                  <asp:CalendarExtender ID="CalendarExtender1" runat="server" PopupButtonID="ImageButton2" 
                                  TargetControlID="fechaFinTXT">
                              </asp:CalendarExtender>
                           
                        </td>
                    </tr>
                    <tr class="PanelTotales">
                        <td  width="130px" align="right" valign="top">
                             Comentario:</td>
                        <td>
                            <asp:TextBox ID="comentarioTXT" runat="server" Height="70px" 
                                TextMode="MultiLine" Width="200px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr class="PanelTotales">
                        <td  width="130px" align="right">
                            Activo:</td>
                        <td>
                            <asp:CheckBox ID="bitActivoCHK" runat="server" />
                        </td>
                    </tr>
                </table>




   <asp:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="0">
     <asp:TabPanel ID="DireccionTPNL" runat="server" HeaderText="Direccion">
     <ContentTemplate>

    <table class="ms-crm-MaxWidth">
        <tr>
            <td class="ms-crm-TextAlign-TrailingEdge" width="100px">
                Calle/Av/Jr.:</td>
                <td width="350px">
                                                 <asp:TextBox ID="direccionTXT" runat="server" 
                        Width="350px"></asp:TextBox>
                                             </td>
                <td rowspan="2" valign="top">
                    <asp:UpdatePanel ID="ubigeoUP" runat="server" UpdateMode="Conditional" >
                        <ContentTemplate>
                            <table class="ms-crm-MaxWidth">
                                <tr>
                                    <td align="right" width="100px">
                                        Nro Lote /Dpto:</td>
                                    <td>
                                        <asp:TextBox ID="descripcionTXT" runat="server" Width="100px"  ToolTip="LOT / EST / DPTO /DEP " ></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right" width="100px">
                                        Urbanizacion:</td>
                                    <td>
                                        <asp:TextBox ID="urbanizacionTXT" runat="server" Width="300px"></asp:TextBox>
                                       
                                        
                                    </td>
                                </tr>
                                  <tr>
                                             <td align="right" width="100px">
                                                 Torre/Mz:</td>
                                             <td>
                                             <asp:UpdatePanel runat="server" ID="localizacionIPNL" UpdateMode="Conditional">
                                             <ContentTemplate>
                                                <asp:DropDownList ID="localizacionDDL" runat="server" Width="210px" AutoPostBack="true"
                                                     onselectedindexchanged="Localizacion">
                                                 </asp:DropDownList>
                                                 </ContentTemplate>
                                             </asp:UpdatePanel>
                                             </td>
                                         </tr>
                                         <tr>
                                             <td align="right" width="100%" colspan="2">

                                                 <asp:UpdatePanel ID="tipoBloqueUPNL" runat="server" UpdateMode="Conditional" >
                                                 <ContentTemplate>
                                                 <table width="100%">
                                                    <tr>
                                             <td align="right" >
                                                 Piso/Bloque:</td>
                                             <td align="left">
                                                 <asp:DropDownList ID="tipoBloqueDDL" runat="server" Width="210px">
                                                 </asp:DropDownList>
                                             </td>
                                         </tr>
                                                 </table>
                                                 </ContentTemplate>
                                                 </asp:UpdatePanel>
                                                 </td>
                                         </tr>
                               
                            </table>
                        </ContentTemplate>
                    </asp:UpdatePanel>
            </td>
        </tr>
        <tr>
            <td class="ms-crm-TextAlign-TrailingEdge" width="100px" valign="top">
                Referencia:</td>
                <td width="350px">
                            <asp:TextBox ID="referenciaTXT" runat="server" Height="70px" 
                                TextMode="MultiLine" Width="350px"></asp:TextBox>
                        </td>
        </tr>
    </table>
 
 
  </ContentTemplate>
    
    
    
    </asp:TabPanel>

   


    <asp:TabPanel ID="construccionTPNL" runat="server" HeaderText="Construccion">
    <ContentTemplate>
    <asp:Panel runat="server" ID="terrenoPNL" GroupingText="Fabrica">
    
    <table class="ms-crm-MaxWidth">
        <tr>
            <td class="ms-crm-TextAlign-TrailingEdge" width="100px">
                Area Terreno:</td>
                <td width="150px">
                <lib:Input ID="areaTerrenoTXT" runat="server"  
                        Width="70px" DataType="Double"></lib:Input>
                                                 m2</td>
                <td width="100px" align="right">
                Frente:</td>
                <td width="150px">
                                                 <lib:Input ID="frenteTXT" runat="server" 
                        Width="90px" ></lib:Input>
                                                 m</td>
                <td rowspan="9" valign="top">
                 
            </td>
        </tr>
        <tr>
            <td class="ms-crm-TextAlign-TrailingEdge" width="100px">
                Area Techada:</td>
                <td width="150px">
                                        <lib:Input ID="areaTechadaTXT" runat="server" Width="70px" DataType="Double" 
                                                     Height="16px"></lib:Input>
                                                 m2</td>
                <td width="100px" align="right">
                Derecho:</td>
                <td width="150px">
                                                 <lib:Input ID="derechoTXT" runat="server" 
                        Width="90px" ></lib:Input>
                                                 m</td>
        </tr>
        <tr>
            <td class="ms-crm-TextAlign-TrailingEdge" width="100px">
                Area Ocupada:</td>
                <td width="150px">
                                        <lib:Input ID="areOcupadaTXT" runat="server" Width="70px" DataType="Double" 
                                                     Height="16px"></lib:Input>
                                                 m2</td>
                <td width="100px" align="right">
                Izquierdo:</td>
                <td width="150px">
                                                 <lib:Input ID="izquierdoTXT" runat="server" 
                        Width="90px" ></lib:Input>
                                                 m</td>
        </tr>
        
        <tr>
            <td class="ms-crm-TextAlign-TrailingEdge" width="100px">
                Numero Partida:</td>
                <td width="150px">
                                                 <asp:TextBox ID="numPartidaTXT" runat="server" 
                        Width="100px"></asp:TextBox>
                                             </td>
                <td width="100px" align="right">
                    Fondo:</td>
                <td width="150px">
                                                 <lib:Input ID="fondoTXT" runat="server" 
                        Width="90px" ></lib:Input>
                                                 m</td>
        </tr>
        
    </table>
    
     </asp:Panel>
 <asp:Panel runat="server" ID="Panel1" GroupingText="Detalle">
    <asp:UpdatePanel ID="ConstruccionUPNL" runat="server" UpdateMode="Conditional" >
                        <ContentTemplate>


                        <asp:Panel runat="server" ID="loteconsPNL">
                        

                            <table class="ms-crm-MaxWidth">
                                <tr>
                                    <td  align="right" width="100px">
                                        Numero Pisos:</td>
                                    <td  width="90px">
                                        <lib:Input ID="numPisoTXT" runat="server" DataType="Double" Width="30px"></lib:Input>
                                    </td>
                                    <td  align="right" width="100px">
                                        &nbsp;</td>
                                    <td  width="90px">
                                        &nbsp;</td>
                                    <td class="ms-crm-TextAlign-TrailingEdge" width="100px" align="right">
                                        &nbsp;</td>
                                    <td  width="90px">
                                        &nbsp;</td>
                                    <td  align="right" width="100px">
                                        &nbsp;</td>
                                    <td  width="90px">
                                        &nbsp;</td>
                                </tr>
                                <tr>
                                    <td align="right" width="100px">
                                        Dormitorio 1:</td>
                                    <td width="90px">
                                        <lib:Input ID="dormitorio1TXT" runat="server" DataType="Double" Width="50px"></lib:Input>
                                        m2</td>
                                    <td align="right" width="100px">
                                        Dormitorio 2:</td>
                                    <td width="90px">
                                        <lib:Input ID="dormitorio2TXT" runat="server" DataType="Double" Width="50px"></lib:Input>
                                        m2</td>
                                    <td width="100px" align="right">
                                        Dormitorio 3:</td>
                                    <td width="90px">
                                        <lib:Input ID="dormitorio3TXT" runat="server" DataType="Double" Width="50px"></lib:Input>
                                        m2</td>
                                    <td align="right" width="100px">
                                        Dormitorio 4:</td>
                                    <td width="90px">
                                        <lib:Input ID="dormitorio4TXT" runat="server" DataType="Double" Width="50px"></lib:Input>
                                        m2</td>
                                </tr>
                                <tr>
                                    <td align="right" width="100px">
                                        Baño 1:</td>
                                    <td width="90px">
                                        <lib:Input ID="banio1TXT" runat="server" DataType="Double" Width="50px"></lib:Input>
                                        m2</td>
                                    <td align="right" width="100px">
                                        Baño 2:</td>
                                    <td width="90px">
                                        <lib:Input ID="banio2TXT" runat="server" DataType="Double" Width="50px"></lib:Input>
                                        m2</td>
                                    <td width="100px" align="right">
                                        Baño 3:</td>
                                    <td width="90px">
                                        <lib:Input ID="banio3TXT" runat="server" DataType="Double" Width="50px"></lib:Input>
                                        m2</td>
                                    <td align="right" width="100px">
                                        &nbsp;</td>
                                    <td width="90px">
                                        &nbsp;</td>
                                </tr>
                                <tr>
                                    <td align="right" width="100px">
                                        Sala:</td>
                                    <td width="90px">
                                        <lib:Input ID="salaTXT" runat="server" DataType="Double" Width="50px"></lib:Input>
                                        m2</td>
                                    <td align="right" width="100px">
                                        Comedor:</td>
                                    <td width="90px">
                                        <lib:Input ID="comedorTXT" runat="server" DataType="Double" Width="50px"></lib:Input>
                                        m2</td>
                                    <td width="100px" align="right">
                                        Cocina:</td>
                                    <td width="90px">
                                        <lib:Input ID="cocinaTXT" runat="server" DataType="Double" Width="50px"></lib:Input>
                                        m2</td>
                                    <td align="right" width="100px">
                                        &nbsp;</td>
                                    <td width="90px">
                                        &nbsp;</td>
                                </tr>
                                <tr>
                                    <td align="right" width="100px">
                                        &nbsp;</td>
                                    <td width="90px">
                                        &nbsp;</td>
                                    <td align="right" width="100px">
                                        Sala/Comedor:</td>
                                    <td width="90px">
                                        <lib:Input ID="salaComedorTXT" runat="server" DataType="Double" Width="50px"></lib:Input>
                                        m2</td>
                                    <td width="100px" align="right">
                                        Sala/Comedor/Cocina:</td>
                                    <td width="90px">
                                        <lib:Input ID="salaComedorCicinaTXT" runat="server" DataType="Double" 
                                            Width="50px"></lib:Input>
                                        m2</td>
                                    <td align="right" width="100px">
                                        &nbsp;</td>
                                    <td width="90px">
                                        &nbsp;</td>
                                </tr>
                                <tr>
                                    <td align="right" width="100px">
                                        Patio:</td>
                                    <td width="90px">
                                        <lib:Input ID="patioTXT" runat="server" DataType="Double" Width="50px"></lib:Input>
                                        m2</td>
                                    <td align="right" width="100px">
                                        Lavanderia:</td>
                                    <td width="90px">
                                        <lib:Input ID="labanderiaTXT" runat="server" DataType="Double" Width="50px"></lib:Input>
                                        m2</td>
                                    <td width="100px" align="right">
                                        Patio/Lavanderia:</td>
                                    <td width="90px">
                                        <lib:Input ID="patioLabanderiaTXT" runat="server" DataType="Double" 
                                            Width="50px"></lib:Input>
                                        m2</td>
                                    <td align="right" width="100px">
                                        &nbsp;</td>
                                    <td width="90px">
                                        &nbsp;</td>
                                </tr>
                                <tr>
                                    <td align="right" width="100px">
                                        Zonas Comunes:</td>
                                    <td width="90px">
                                        <lib:Input ID="zonaComunTXT" runat="server" DataType="Double" Width="50px"></lib:Input>
                                    </td>
                                    <td align="right" width="100px">
                                        Aires:</td>
                                    <td width="90px">
                                        <lib:Input ID="aireTXT" runat="server" DataType="Double" Width="50px"></lib:Input>
                                        m2</td>
                                    <td width="100px" align="right">
                                        &nbsp;</td>
                                    <td width="90px">
                                        &nbsp;</td>
                                    <td align="right" width="100px">
                                        &nbsp;</td>
                                    <td width="90px">
                                        &nbsp;</td>
                                </tr>
                            </table>
                            </asp:Panel>

                            <asp:Panel runat="server" ID="depaPNL">
                            
    <table >
        <tr>
            <td align="right" width="100px" >
                Domitorios #:</td>
            <td>
                                        <lib:Input ID="numDormitorioTXT" runat="server" 
                    DataType="Double" Width="50px"></lib:Input>
                                        </td>
        </tr>
        <tr>
            <td align="right" width="100px" >
                Baños #:</td>
            <td>
                <lib:Input ID="numBanioTXT" runat="server" 
                    DataType="Double" Width="50px"></lib:Input>
                                        </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
    </asp:Panel>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                    </asp:Panel>

 </ContentTemplate>
    
    </asp:TabPanel>


      <asp:TabPanel ID="precioTPNL" runat="server" HeaderText="Precio">
    <ContentTemplate>
   
  
   <table class="ms-crm-MaxWidth">
         <tr>
            <td width="100px" align="right">
                Moneda:</td>
            <td>
                                    <asp:DropDownList ID="monedaDDL" runat="server" 
                    Width="170px">
                                    </asp:DropDownList>
             
                                    </td>
            <td align="right" width="100px">
                                                 &nbsp;</td>
            <td>
                                                 &nbsp;</td>
        </tr>
        <tr>
            <td width="100px" align="right" >
                Precio Nomal:</td>
            
            <td > 
                                   
             

                                    <lib:Input ID="precioTXT" runat="server" DataType="Double" Width="150px"></lib:Input>
                                   
             

                                    </td>
            
            <td colspan="2" > 
                <asp:UpdatePanel ID="programaUPNL" runat="server" UpdateMode="Conditional">
                    <ContentTemplate>
                    <asp:Panel ID="programaPNL" runat="server">
                        <table class="ms-crm-MaxWidth">
                            <tr>
                                <td align="right" class="style1" width="100px">
                                    &nbsp;</td>
                                <td class="style1">
                                    &nbsp;</td>
                            </tr>
                        </table>
                        </asp:Panel>
                    </ContentTemplate>
                </asp:UpdatePanel>
            </td>
            
        </tr>
           <tr>
               <td align="right" width="100px">
                   Separacion:</td>
               <td>
                   <lib:Input ID="separacionTXT" runat="server" DataType="Double" Width="150px">
                    </lib:Input>
               </td>
               <td>
                   &nbsp;</td>
               <td rowspan="2">
                   &nbsp;</td>
           </tr>
        <tr>
            <td width="100px" align="right">

            </td>
            
            <td>
            </td>
            
            <td>
            </td>
            
        </tr>
        </table>
      



         </ContentTemplate>
    </asp:TabPanel>



        <asp:TabPanel ID="TabPanel1" runat="server" HeaderText="Sistemas">
    <ContentTemplate>
   
  
   <table class="ms-crm-MaxWidth">
         <tr>
            <td width="100px" align="right">
                Cordenadas:</td>
            <td>
               <asp:TextBox ID="cordenadaTXT" runat="server" Width="170px">
               </asp:TextBox>
             
                                    </td>
        
        </tr>
    
        </table>
      



         </ContentTemplate>
    </asp:TabPanel>




     </asp:TabContainer>
     
  </asp:Panel>




   
    </form>
    </body>
</html>
